package com.jp.knowledge.activity;

import android.support.v4.app.Fragment;
import android.view.View;

import com.jp.knowledge.R;
import com.jp.knowledge.comm.SlidingActivity;
import com.jp.knowledge.fragment.TeamCircleDataShowDetailFragment;

/**
 * Created by 528787067@qq.com on 2017/7/20.
 */

public class TeamCircleShowDetailActivity extends SlidingActivity {

	@Override
	protected int getResourceId() {
		return R.layout.activity_team_circle_show_detail;
	}

	@Override
	protected void init() {
		topName.setText("详情");
		leftIcon.setImageResource(R.mipmap.arrow_white_left);
		rightIcon.setVisibility(View.GONE);
		leftIcon.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				onBackPressed();
			}
		});
		Fragment fragment = TeamCircleDataShowDetailFragment
				.newInstance(application.getUserData(), getIntent().getStringExtra("id"));
		getSupportFragmentManager()
				.beginTransaction()
				.replace(R.id.team_circle_detail_content, fragment)
				.commit();
	}
}
